<div class="devui-demo-container" dAnchorBox dAnchorHashSupport [view]="{ top: 180, bottom: 0 }">
  <d-demo-nav [navItems]="navItems"></d-demo-nav>
  <div class="devui-demo-example" [dAnchor]="'read-only-mode'">
    <div class="devui-demo-title">{{ 'components.rate.onlyReadDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="components-rate-onlyread" [sourceData]="onlyreadSource">
      <d-rate-demo-onlyread demo></d-rate-demo-onlyread>
    </d-codebox>
  </div>
  <div class="devui-demo-example" [dAnchor]="'dynamic-mode'">
    <div class="devui-demo-title">{{ 'components.rate.basicDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="components-rate-basic" [sourceData]="basicSource">
      <d-rate-demo-basic demo></d-rate-demo-basic>
    </d-codebox>
  </div>
  <div class="devui-demo-example" [dAnchor]="'dynamic-mode-Custom'">
    <div class="devui-demo-title">{{ 'components.rate.customizeDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="components-rate-customize" [sourceData]="customizeSource">
      <d-rate-demo-customize demo></d-rate-demo-customize>
    </d-codebox>
  </div>
  <div class="devui-demo-example" [dAnchor]="'using-the-type-parameter'">
    <div class="devui-demo-title">{{ 'components.rate.typeDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="components-rate-type" [sourceData]="TypeSource">
      <d-type demo></d-type>
    </d-codebox>
  </div>
</div>
